package com.software.chemistry.repository;

import com.software.chemistry.entity.Collection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CollectionRepository extends JpaRepository<Collection, String> {
    Collection findCollectionByModelId(String modelId);
    Collection findCollectionByUserIdAndModelId(String userId, String modelId);
}
